package com.yaoxuguang.concurrence.synchronizedpackage.notThisSynchronizedCodeBlock;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.synchronizedpackage.notThisSynchronizedCodeBlock
 * @Description: TODO
 * @date 2018年12月18日14:15
 */
public class ThreadB extends Thread {
    private SyncCodeBlock codeBlock;

    public ThreadB(String name, SyncCodeBlock codeBlock) {
        super(name);
        this.codeBlock = codeBlock;
    }

    @Override
    public void run() {
        codeBlock.lock("bbbb","bbbbbbb");
    }
}
